package com.bosssoft.user.permission.center.serve.pojo.dto;

import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import io.swagger.annotations.ApiModel;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * @className: IdVersionDTO
 * @description: 主键与版本号组合的DTO
 * @author: lanyukai
 * @date: 2024/6/13 17:36
 * @since 1.0
 **/
@Data
@NoArgsConstructor
@AllArgsConstructor
@ApiModel("控制层和业务层交互的主键、版本信息")
public class IdVersion {
    /**
     *  主键
     */
    @JsonSerialize(using= ToStringSerializer.class)
    private Long id;
    /**
     * 行的版本
     */
    @JsonSerialize(using= ToStringSerializer.class)
    private Long version;
}
